package com.itjason.service;

import com.itjason.dto.CommentDTO;
import com.itjason.dto.DeleteDynamicDTO;
import com.itjason.dto.DynamicDTO;
import com.itjason.exceptionhandler.ResponseException;
import com.itjason.po.Comments;
import com.itjason.po.Dynamics;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itjason.vo.DynamicVO;
import com.itjason.vo.DynamicsVO;

import java.util.List;

/**
* @author dengxiang
* @description 针对表【dynamics】的数据库操作Service
* @createDate 2024-06-03 21:03:04
*/
public interface DynamicsService extends IService<Dynamics> {

    ResponseException addDynamic(DynamicDTO dynamicDTO);

    ResponseException addComment(CommentDTO commentDTO);

    ResponseException deleteDynamic(DeleteDynamicDTO dynamicDTO);

    DynamicsVO getDynamics();

    List<Comments> getDynamicsAboutComments(Integer dynamicId);

    List<DynamicVO> getDynamicByUserId(Integer userId);
}
